<%@ page language="java" contentType="text/html;charset=UTF-8" %>

<!DOCTYPE html>
<html>
<head>
<meta charset="US-ASCII">
<title>TCC Eugenio - Request/Response</title>
<script type="text/javascript" src="jquery.js"></script>

<script type="text/javascript">
	setInterval(function(){
		callEvent();
	},5000);
	
	var callEvent = function(){
		$.get( "event", function( data ) {
			if(data === "" || data === undefined){
				return;
			}
			var oldData = $("#mainEvent").html();
			$("#mainEvent").html(oldData + "\n" + data);
		});
	};
</script>

</head>
<body>
	Acompanhe aqui os lances da luta.
	<div>
		<br />
		<textarea id="mainEvent" rows="10" cols="10" style="margin: 2px; width: 439px; height: 243px;"></textarea>
	</div>
	<a href="event?reset=true">Recomecar</a>
</body>
</html>